package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2023/1/16 10:55 AM
 * @Version: 1.0
 **/
@Data
@TableName("pf_performance_effect")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PerformanceEffectDetail 对象", description = "履职成效考评内容")
public class PerformanceEffectDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long basePerformanceId;

    @ApiModelProperty(value = "考核项目和内容")
    private String checkItem;

    @ApiModelProperty(value = "计分办法")
    private String scoreMethod;

    @ApiModelProperty(value = "填报处室")
    @TableField(exist = false)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long reportOffice;

    @ApiModelProperty(value = "填报处室名字")
    @TableField(exist = false)
    private String reportOfficeName;
}
